// JavaScript Document


var imgbox = ["images/banner_01.png","images/G111.jpg","images/G222.jpg"]; // 图片地址
var counter = 0;
function run(){
    setInterval(cycle,1000);  //重复运行cycle函数，周期1000ms
}
function cycle(){
    counter++;
    if(counter == imgbox.length)
        counter = 0;
    document.getElementById("imgbox").src = imgbox[counter];
}